package com.example.multithread;

class MyThread5 implements Runnable {

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }
}
public class ThreadMethodTest2 {
    public static void main(String[] args) {
        MyThread5 myThread5 = new MyThread5();
        new Thread(myThread5).start(); // 返回 Thread-0
        myThread5.run(); // 返回 main
    }
}
